﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WebApplication5
{
    public class Customer
    {
        public string name { get; }
        public Customer(string name)
        {
            this.name = name;
        }
        public override string ToString()
        {
            return name;
        }
        public override bool Equals(object obj)
        {
            Customer c = obj as Customer;
            return c != null && c.name.Equals(name);
        }
        public override int GetHashCode()
        {
            return base.GetHashCode();
        }
    }
}
